/*
 Navicat Premium Data Transfer

 Source Server         : 检查系统（开发环境）
 Source Server Type    : SQL Server
 Source Server Version : 12002000
 Source Host           : 47.102.106.48:1433
 Source Catalog        : dev-check
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 12002000
 File Encoding         : 65001

 Date: 20/08/2020 14:23:59
*/


-- ----------------------------
-- Table structure for project_check
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[project_check]') AND type IN ('U'))
	DROP TABLE [dbo].[project_check]
GO

CREATE TABLE [dbo].[project_check] (
  [id] int IDENTITY(1000,1) NOT NULL,
  [name] nvarchar(200) COLLATE Chinese_PRC_CI_AS NOT NULL,
  [sort] int DEFAULT (datediff(second,'1970-01-01 00:00:00',getdate())) NOT NULL,
  [remark1] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  [remark2] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL,
  [created_time] datetime DEFAULT (getdate()) NOT NULL,
  [last_modified_time] datetime DEFAULT (getdate()) NOT NULL
)
GO

ALTER TABLE [dbo].[project_check] SET (LOCK_ESCALATION = TABLE)
GO

EXEC sp_addextendedproperty
'MS_Description', N'id',
'SCHEMA', N'dbo',
'TABLE', N'project_check',
'COLUMN', N'id'
GO

EXEC sp_addextendedproperty
'MS_Description', N'名称',
'SCHEMA', N'dbo',
'TABLE', N'project_check',
'COLUMN', N'name'
GO

EXEC sp_addextendedproperty
'MS_Description', N'排序',
'SCHEMA', N'dbo',
'TABLE', N'project_check',
'COLUMN', N'sort'
GO

EXEC sp_addextendedproperty
'MS_Description', N'创建时间',
'SCHEMA', N'dbo',
'TABLE', N'project_check',
'COLUMN', N'created_time'
GO

EXEC sp_addextendedproperty
'MS_Description', N'最后修改时间',
'SCHEMA', N'dbo',
'TABLE', N'project_check',
'COLUMN', N'last_modified_time'
GO

EXEC sp_addextendedproperty
'MS_Description', N'项目-检查项',
'SCHEMA', N'dbo',
'TABLE', N'project_check'
GO


-- ----------------------------
-- Records of [project_check]
-- ----------------------------
SET IDENTITY_INSERT [dbo].[project_check] ON
GO

INSERT INTO [dbo].[project_check] ([id], [name], [sort], [remark1], [remark2], [created_time], [last_modified_time]) VALUES (N'1001', N'混凝土结构-拆模工程', N'1', NULL, NULL, N'2020-05-01 10:54:44.887', N'2020-05-01 10:54:44.887')
GO

INSERT INTO [dbo].[project_check] ([id], [name], [sort], [remark1], [remark2], [created_time], [last_modified_time]) VALUES (N'1002', N'砌筑工程', N'1', NULL, NULL, N'2020-05-01 10:54:57.423', N'2020-05-01 10:54:57.423')
GO

INSERT INTO [dbo].[project_check] ([id], [name], [sort], [remark1], [remark2], [created_time], [last_modified_time]) VALUES (N'1003', N'建筑装饰-抹灰工程', N'3', NULL, NULL, N'2020-05-01 10:55:06.453', N'2020-05-01 10:55:06.453')
GO

INSERT INTO [dbo].[project_check] ([id], [name], [sort], [remark1], [remark2], [created_time], [last_modified_time]) VALUES (N'1004', N'建筑装饰-门窗工程', N'4', NULL, NULL, N'2020-05-01 10:55:15.770', N'2020-05-01 10:55:15.770')
GO

INSERT INTO [dbo].[project_check] ([id], [name], [sort], [remark1], [remark2], [created_time], [last_modified_time]) VALUES (N'1005', N'建筑装饰-防水工程', N'5', NULL, NULL, N'2020-05-01 10:55:23.893', N'2020-05-01 10:55:23.893')
GO

INSERT INTO [dbo].[project_check] ([id], [name], [sort], [remark1], [remark2], [created_time], [last_modified_time]) VALUES (N'1006', N'建筑装饰-幕墙工程', N'6', NULL, NULL, N'2020-05-01 10:55:36.897', N'2020-05-01 10:55:36.897')
GO

INSERT INTO [dbo].[project_check] ([id], [name], [sort], [remark1], [remark2], [created_time], [last_modified_time]) VALUES (N'1007', N'钢结构', N'7', NULL, NULL, N'2020-05-01 10:55:43.363', N'2020-05-01 10:55:43.363')
GO

INSERT INTO [dbo].[project_check] ([id], [name], [sort], [remark1], [remark2], [created_time], [last_modified_time]) VALUES (N'1008', N'精装修工程', N'0', NULL, NULL, N'2020-08-07 16:29:57.287', N'2020-08-07 16:29:57.287')
GO

SET IDENTITY_INSERT [dbo].[project_check] OFF
GO


-- ----------------------------
-- Uniques structure for table project_check
-- ----------------------------
ALTER TABLE [dbo].[project_check] ADD CONSTRAINT [UQ__project___72E12F1B6624A923] UNIQUE NONCLUSTERED ([name] ASC)
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO


-- ----------------------------
-- Primary Key structure for table project_check
-- ----------------------------
ALTER TABLE [dbo].[project_check] ADD CONSTRAINT [PK__project___3213E83F6F67471B] PRIMARY KEY CLUSTERED ([id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

